//
//  SHNavigationViewController.swift
//  RxSwiftDemo2019_03_31
//
//  Created by bebull on 2021/12/27.
//  Copyright © 2021 远平. All rights reserved.
//

import UIKit

class SHNavigationViewController: UINavigationController {
    
    override func viewDidLoad() {
        super.viewDidLoad()

        navigationController?.interactivePopGestureRecognizer?.delegate = self
        
    }
    
}

extension SHNavigationViewController {
    override func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
        if children.count == 1 {
            return false
        }
        return true
    }
}

